package domd8;

import java.util.Scanner;

public class test {
    public static void main(String[] args) {
        Main main=new Main();
        Scanner in=new Scanner(System.in);
        while (in.hasNextLine()){
            String str=in.nextLine();
            //创建二插数
            Main.TreeNode root=main.createTree(str);
            //中序遍历
           main.ordermid(root);
            System.out.println();
            //层次遍历
           main.leveTree(root);
           //层次遍历二插数
            System.out.println(main.LeveTree(root));
            //判断是否是完全二插数
            System.out.println(main.CompleteTree(root));
        }
    }
}
